package com.rdk.action;


import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


/**
 * 分享用户关系
 * @author wang_lei
 *
 */
@Controller
public class ShareUserRelationAction extends BaseAction{
	/**
	 * 
	 * @param request
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "shareUserRelation/query")
	public ModelAndView queryShareUserRelation(HttpServletRequest request, ModelMap map){
//		String userId = CommonUtil.getSession(request, StrConstant.PARAM_USERID);
//		if("0".equals(userId)){
//			userId = CommonUtil.getRequest(request, StrConstant.PARAM_USERID);
//		}
		
		Map<String,Object> object = new HashMap<String,Object>();
		object.put("resultCode", 1);
		object.put("resultDes", "");
//		object.put("data", shareUserRelationService.findShareUserRelation(request,userId));
		return new ModelAndView("jsonView", object);
	}
	
	/**
	 * 
	 * @param request
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "shareUserRelation/add")
	public ModelAndView addShareUserRelation(HttpServletRequest request, ModelMap map){
		
		//String userId = CommonUtil.getSession(request, StrConstant.USERID); 
		Map<String,Object> object = new HashMap<String,Object>();
		object.put("resultCode", 1);
		object.put("resultDes", "");
		return new ModelAndView("jsonView", object);
	}
	
	
	/**
	 * 
	 * @param request
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "shareUserRelation/update")
	public ModelAndView updateShareUserRelation(HttpServletRequest request, ModelMap map){
		
		//String userId = CommonUtil.getSession(request, StrConstant.USERID); 
		Map<String,Object> object = new HashMap<String,Object>();
		object.put("resultCode", 1);
		object.put("resultDes", "");
		return new ModelAndView("jsonView", object);
	}
	
	/**
	 * 
	 * @param request
	 * @param map
	 * @return
	 */
	@RequestMapping(value = "shareUserRelation/delete")
	public ModelAndView removeShareUserRelation(HttpServletRequest request, ModelMap map){
		
		//String userId = CommonUtil.getSession(request, StrConstant.USERID); 
		Map<String,Object> object = new HashMap<String,Object>();
		object.put("resultCode", 1);
		object.put("resultDes", "");
		return new ModelAndView("jsonView", object);
	}
}
